import request from '@/utils/request'

// 查询银行明细列表
export function listBankdetails(query) {
  return request({
    url: '/BankdetailsMain/bankdetails/list',
    method: 'get',
    params: query
  })
}
// 查询银行明细列表
export function listBankdetailsUser(query) {
  return request({
    url: '/BankdetailsMain/bankdetails/listAsUser',
    method: 'get',
    params: query
  })
}
// 查询银行明细列表-多个id返回查询
export function listBankdetailsIds(query) {
  return request({
    url: '/BankdetailsMain/bankdetails/listAll',
    method: 'get',
    params: query
  })
}
// 查询银行明细列表-任务消息
export function listBankdetailspro(query) {
  return request({
    url: '/BankdetailsMain/bankdetails/listpro',
    method: 'get',
    params: query
  })
}

// 查询银行明细详细
export function getBankdetails(bId) {
  return request({
    url: '/BankdetailsMain/bankdetails/' + bId,
    method: 'get'
  })
}

// 新增银行明细
export function addBankdetails(data) {
  return request({
    url: '/BankdetailsMain/bankdetails',
    method: 'post',
    data: data
  })
}

// 修改银行明细
export function updateBankdetails(data) {
  return request({
    url: '/BankdetailsMain/bankdetails',
    method: 'put',
    data: data
  })
}
// 修改银行明细
export function updateBankdetailsA(data) {
  return request({
    url: '/BankdetailsMain/bankdetails/A',
    method: 'put',
    data: data
  })
}
// 修改银行明细-没有的置原始状态
export function updateBankdetailsB(data) {
  return request({
    url: '/BankdetailsMain/bankdetails/B',
    method: 'put',
    data: data
  })
}

// 删除银行明细
export function delBankdetails(bId) {
  return request({
    url: '/BankdetailsMain/bankdetails/' + bId,
    method: 'delete'
  })
}

// 查询合同对应银行明细列表
export function listbkitem(query) {
  return request({
    url: '/BankdetailsMain/bankdetails/listbkitem',
    method: 'get',
    params: query
  })
}
